package com.caochenlei.linkedList;

public class SinglyCircularLinkedListTest {
    public static void main(String[] args) {
        SinglyCircularLinkedList<String> linkedList = new SinglyCircularLinkedList<>();

        linkedList.addLast("张三");
        linkedList.addLast("李四");
        linkedList.addLast("王五");

        System.out.println("==========打印链表基本信息：");
        System.out.println("链表结点个数：" + linkedList.size());
        System.out.println("链表是否为空：" + linkedList.isEmpty());
        System.out.println("==========打印链表所有结点：");
        linkedList.show();
        System.out.println("==========打印链表首尾结点：");
        System.out.println("链表的头结点：" + linkedList.getFirst());
        System.out.println("链表的尾结点：" + linkedList.getLast());
    }
}